package com.example.emailcraft.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.emailcraft.entity.Users;
import com.example.emailcraft.entity.common.Result;
import com.example.emailcraft.entity.request.LoginRequest;
import com.example.emailcraft.entity.request.RegisterRequest;
import org.springframework.http.ResponseEntity;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author scj
 * @since 2025-01-21
 */
public interface IUsersService extends IService<Users> {


    public ResponseEntity<Result<Object>> login(LoginRequest request, HttpServletResponse response);
    public ResponseEntity<Result<Object>> register(RegisterRequest request);

    ResponseEntity<Result<Object>> IsLogin(HttpServletRequest request);
}
